<!doctype html>
<html  class="x-admin-sm">
<head>
	<meta charset="UTF-8">
	<title>${fnc.getApplicationName()}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="${ctxPath}/static/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctxPath}/static/css/login.css" media="all">
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <![endif]-->

</head>
<body>
<div class="layui-container">
    <div class="admin-login-background">
        <div class="layui-form login-form">
                <div class="layui-form-item logo-title">
                    <h1>${fnc.getApplicationName()}</h1>
                </div>
                <form class="layui-form" action="${ctxPath}/login" id="login-submit" method="post">
                <div class="layui-form-item">
                    <label class="layui-icon layui-icon-username" ></label>
                    <input type="text" id="username" name="username" lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input" value="admin">
                </div>
                <div class="layui-form-item">
                    <label class="layui-icon layui-icon-password" ></label>
                    <input type="password" id="password" name="password" lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input" value="123456">
                </div>
                <div class="layui-form-item">
                    <label class="layui-icon layui-icon-vercode" ></label>
                    <input type="text" id="kaptcha" name="kaptcha" lay-verify="required|kaptcha" placeholder="图形验证码" autocomplete="off" class="layui-input verification captcha">
                    <div class="captcha-img">
                        <img alt="验证码" onclick = "this.src='${ctxPath}/kaptcha?d='+new Date()*1" src="${ctxPath}/kaptcha" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <button  class="layui-btn layui-btn layui-btn-normal layui-btn-fluid" lay-submit="" lay-filter="login">登 录</button>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="${ctxPath}/static/js/jquery-3.2.1.min.js" charset="utf-8"></script>
<script src="${ctxPath}/static/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="${ctxPath}/static/js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script>


</script>
<!--js逻辑-->
<script>

    layui.use(['login'], function () {
        var $=layui.jquery,
            login=layui.login;
        /*var href=location.href;
        if (href.indexOf("kickout")>1){
            login.kickout();
        }*/
        login.init();
        login.message('${message!}');

    });
</script>
</body>
</html>